import Vue from 'vue'
import Vuex from 'vuex'
import user from './modules/user'
import permission from './modules/permission'
import app from './modules/app'
import getters from './getters'
import tagsView from './modules/tagsView'
import device from './modules/device'
import model from './modules/model'
import map from './modules/map'
Vue.use(Vuex)

export default new Vuex.Store({
  state:{
		baseMapList: [
			{
				alpha: 255,
				createDate: "0001-01-01 00:00",
				id: 4,
				languages: null,
				name: "天地图矢量图",
				ownerID: 0,
				ownerName: null,
				shortDesc: "天地图",
				typeID: 5,
				typeName: "tianditu",
				url: "http://t{1-7}.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=df5b7775fab31595f6c43caadb9af47d|http://t{1-7}.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=df5b7775fab31595f6c43caadb9af47d"
			},
			{
				alpha: 255,
				createDate: "0001-01-01 00:00",
				id: 5,
				languages: null,
				name: "天地图影像图",
				ownerID: 0,
				ownerName: null,
				shortDesc: "天地图",
				typeID: 5,
				typeName: "tianditu",
				url: "http://t{1-7}.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=df5b7775fab31595f6c43caadb9af47d|http://t{1-7}.tianditu.com/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=df5b7775fab31595f6c43caadb9af47d"
			}
		], // 底图列表
    showMapType:"imgserver",
	mapObj:undefined,
  },
  modules: {
    user,
	map,
    permission,
    app,
    tagsView,
    device,
    model
  },
  getters
})
